package com.lxm.common.contants;

public abstract class BlogConstants {
    // 新增文章失败
    public static final String ADD_BLOG_FAIL = "新增文章失败！";
    // 删除文章失败
    public static final String DELETE_BLOG_FAIL = "删除文章失败";
    public static final String DELETE_BLOG_SUCCESS = "删除文章成功";
    public static final String UPDATE_BLOG_FAIL = "文章更新失败!";
    public static final String BLOG_NOT_EXIST = "文章未发布或者不存在";

    public static final String NOT_DRAFT_BLOG = "暂无草稿";
    public static final String BLOG_TYPE_DELETE_FAIL = "博客类型删除失败";
    public static final String BLOG_TYPE_UPDATE_FAIL = "博客类型更新失败";
    public static final String BLOG_TYPE_ADD_FAIL = "博客类型添加失败";

    //redis的key
    public static final String BLOG_TYPE_KEY = "blogType";

    //文章分页常量
    public static final Integer BLOG_PAGE_SIZE = 10;

    //文章发布状态,0为草稿，1为发布
    public static final Object BLOG_RELEASE_STATUS = 1;
    public static final Object BLOG_DRAFT_STATUS = 0;

    /**
     * 文章标题的简介长度,超出12部分省略
     */
    public static final int BLOG_TITLE_BRIEF = 12;

}
